#include "main2form.h"
#include "ui_main2form.h"

Main2Form::Main2Form ( QWidget* parent ) :
    QWidget ( parent ),
    ui ( new Ui::Main2Form )
{
    ui->setupUi ( this );

    ui->widget->setTextStyle ( QQtCustomProgressBar::TextStyle_Middle_Percent );
    ui->widget->setShowFree ( true );
    ui->widget->setFreeColor ( QColor ( 204, 204, 204 ) );
    ui->widget->setUsedColor ( QColor ( 0, 153, 255 ) );
    QFont font = qApp->font();
    font.setPixelSize ( 48 );
    font.setBold ( true );
    ui->widget->setPercentTextFont ( font );
    ui->widget->setPercentTextColor ( QColor ( 0, 147, 221 ) );
    ui->widget->setNullPosition ( 90 );
    ui->widget->setLineWidth ( 14 );
    ui->widget->setLineCapStyle ( Qt::FlatCap );

    ui->widget->setValue ( 50 );

    ui->widget_2->initMainForm();
}

Main2Form::~Main2Form()
{
    delete ui;
}
